package beantown;

import econosim.*;
import java.util.*;

import simframe.util.*;

public class LocFeeMarket extends FreeMarket {

    static double scale = 0.01;
    
	Map<TransActionAgent, Location> locs = new HashMap<TransActionAgent, Location>();
	
	@Override
	public double fee(TransActionAgent agent1, TransActionAgent agent2) {

		Location loc1 = agent1.getLoc();
        Location loc2 = agent2.getLoc();
		
		return scale * loc1.dist(loc2);
	}
}
